package com.sunfeng.chap4.test21;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;
import java.util.concurrent.TimeUnit;

public class Client {
    public static void main(String[] args) throws IOException, InterruptedException {
        Socket socket = new Socket("localhost", 8088);
        OutputStream outputStream = socket.getOutputStream();

        outputStream.write("111".getBytes());
        outputStream.write("222222".getBytes());
        outputStream.write("333333333".getBytes());
        TimeUnit.SECONDS.sleep(10000000);
        socket.close();
    }
}
